package com.hualan.sfzyproject.mapper;


import com.hualan.sfzyproject.domain.CourseTypes;
import com.hualan.sfzyproject.domain.Fm;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author LUCK
* @description 针对表【fm】的数据库操作Mapper
* @createDate 2025-01-02 16:01:40
* @Entity com.hualan.sfzyproject.domain.Fm
*/
@Mapper
public interface FmMapper {

    void insert(Fm fm);
    List<Fm> selectAll();
    int deleteByFmId(Long id);
    int updateById(Fm fm);
    List<Fm> selectByCourseTypeIdAndTitle(@Param("id") Long id, @Param("title") String title);
    List<Fm> selectByCourseTypeId(Long id);
    List<CourseTypes> selectAllType();
    List<Fm> getFMDetailByFmId(Long id);

}
